﻿using ControlCenter.Model;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace ControlCenter.Operation
{
    /// <summary>
    /// 参数设置操作接口
    /// </summary>
    public interface IParamSettingOperation
    {
        /// <summary>
        /// 查询所有的参数
        /// </summary>
        /// <returns></returns>
        Task<IEnumerable<ParamSettings>> Query();
        /// <summary>
        /// 根据ParamCode查询参数
        /// </summary>
        /// <param name="paramCode"></param>
        /// <returns></returns>
        Task<ParamSettings> Find(string paramCode);
        /// <summary>
        /// 新增或更新参数信息
        /// </summary>
        /// <param name="paramSettings"></param>
        /// <returns></returns>
        Task<bool> UpdateOrSave(ParamSettings paramSettings);
    }
}
